
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>评论</title>
    <link rel="stylesheet" type="text/css" href="mode/weui/weui.min.css"/>
    <link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="webmain/css/rui.css">
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/js.js"></script>
    <script type="text/javascript" src="js/jswx.js"></script>
    <script type="text/javascript" src="js/base64-min.js"></script>
    <script type="text/javascript" src="webmain/we/ying/ying.js"></script>
    <script type="text/javascript" src="mode/plugin/jquery-rockdoupull.js"></script>

    <style>

        body,html{background-color:#f1f1f1;overflow:hidden; background-color: white}



    </style>
    <script>

        var mid = GetQueryStrings("mid");


        window.onload=function(){


            $('#mid').val(mid);

        }

        function comment(){


         if($('#content').val().length) {

             $.ajax({
                 type: 'POST',
                url: "http://oa.wxlion.com/index.php?a=comment&m=ying&d=we&num=daily&show=we",
                 //url: "http://localhost/oa/public_html/index.php?a=comment&m=ying&d=we&num=daily&show=we",
                 data: {
                     mid: $('#mid').val(),
                     comment: $('#content').val()
                 },
                 datatype: "json",
                 success: function(data) {

                     history.go(-1);

                 },
                 //调用出错执行的函数
                 error: function(error1) {


                 }
             });

         }


        }

        function GetQueryStrings(name)
        {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if(r!=null)return  unescape(r[2]); return null;
        }


    </script>
</head>



<div  style="width: 100%; height: calc(100% - 10px);  overflow: auto; background-color: white;">



        <textarea id="content" name="comment" style="width:calc(100% - 40px); margin:20px;border: 1px gainsboro solid ;height: 100px;font-size: 16px; padding: 5px; box-sizing: border-box" placeholder="请在此处输入文本..."></textarea>

        <input id="mid" type="hidden" name="mid">

        <div  onclick="comment()" style="text-align: center; width: 90%; border-radius: 5px; height: 30px;line-height: 30px; margin: 10px 5% 10px 5%; padding: 5px 0px;  background-color: rgb(27,205,138); font-size: 16px">发表<div>



</div>




</html>